<?php

namespace App\Exceptions;

use Exception;

class BaseException extends Exception
{
    protected $code = "";
    protected $message = "";

    public function __construct($code, $message = "")
    {
        $this->code = $code;
        $this->message = $message;
    }


    public function __toString()
    {
        return json_encode($this);
    }

}
